#import <UIKit/UIKit.h>
#import <FGPopupView.h>
#import <FGPopupScheduler/FGPopupScheduler.h>

NS_ASSUME_NONNULL_BEGIN


@interface XMPopupView : UIView <FGPopupView>

- (instancetype)initWithContentView:(UIView *)contentView scheduler:(FGPopupScheduler *)scheduler;

- (instancetype)initWithContentView:(UIView *)contentView
                           fromView:(UIView *)fromView
                          scheduler:(FGPopupScheduler *)scheduler;

@property (nonatomic, strong, readonly) FGPopupScheduler *scheduler;

@property (nonatomic, assign) FGPopupViewSwitchBehavior switchBehavior;

@property (nonatomic, strong) UIView *fromView;

@property (nonatomic, copy) void (^touchCallBack)(void);

@end

NS_ASSUME_NONNULL_END
